home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 44 / CDPowerplay44Disc2.iso / unreal / cool UT files / Hiccups.umod < prev    next >
Encoding:
INI File  |  1999-11-01  |  4.5 KB  |  124 lines

  1. [Setup]
  2. Product=The Hiccups
  3. Version=100
  4. Archive=Hiccups.umod
  5. SrcPath=.
  6. MasterPath=..
  7. Requires=Unreal Tournament Demo338Requirement
  8. Group=SetupGroup
  9. Group=HiccupsGroup
  10. Group=umodIncludeFilesGroup
  11.  
  12. [Unreal Tournament Demo338Requirement]
  13. Product=Unreal Tournament Demo
  14. Version=338
  15.  
  16. [SetupGroup]
  17. Copy=(Src=System\Manifest.ini,Master=System\Manifest.ini,Size=486,Flags=3)
  18. Copy=(Src=System\Manifest.int,Master=System\Manifest.int,Size=523,Flags=3)
  19.  
  20. [HiccupsGroup]
  21. File=(Src=System\Hiccups.int,Size=148)
  22. File=(Src=System\Hiccups.u,Size=2450)
  23.  
  24. [umodIncludeFilesGroup]
  25. File=(Src=Help\Hiccups.txt,Size=676)
  26.  
  27. [Setup]
  28. LocalProduct=The Hiccups
  29. ReadMe=Help\Hiccups.txt
  30. SetupWindowTitle=Hiccups Mutator
  31. AutoplayWindowTitle=The Hiccups Options
  32. ProductURL=http://www.planetunreal.com/mutation
  33. VersionURL=http://www.planetunreal.com/mutation
  34. Developer=JbP
  35. DeveloperURL=http://www.planetunreal.com/mutation
  36.  
  37. [Unreal Tournament Demo338Requirement]
  38. LocalProduct=Unreal Tournament Demo
  39. ProductURL=http://www.unrealtournament.com
  40. VersionURL=http://unreal.epicgames.com
  41. Developer=Epic Games
  42. DeveloperURL=http://www.epicgames.com
  43. [Public]
  44. Object=(Name=Hiccups.Hiccups,Class=Class,MetaClass=Engine.Mutator,Description="The Hiccups, Makes everyone jump at a random interval")
  45.  
  46. ┴â*₧D!@
  47.     u ▀Qh╘y╙½cDEST
  48. !NoneMakePlayerJumpHiccups
  49. ModifyPlayerEngineCoreBigJump PlayerPawnTimerDoJumpSystemBotClass TextBufferStructPropertyPackagePawnObject ScriptText    FunctionObjectProperty    Location
  50. bIsPlayerOtherP NextMutatorMutatorBotpack
  51. BoolProperty
  52. bGameStartedActor    PathNode    jumpNodeÇââïÇâÆ√=ü-a└?(-';wî*î  
  53. ,áâ,a/!.ê    ├ üa/! /a6 ïHC öÇ.ë 0 10 [//=============================================================================
  54. // Hiccups.
  55. // Author: JbP
  56. // Date: 3/10/99
  57. // Version: 1.0
  58. //
  59. // Desc: A mutator which gives everyone the 'hiccups'; everyone jumps when the
  60. // timer returns (on average every 2 seconds).
  61. //=============================================================================
  62. class Hiccups expands Mutator;
  63.  
  64. var bool bGameStarted;
  65.  
  66. // The timer starts when the first person enters
  67. function ModifyPlayer(Pawn Other)
  68. {
  69.     if (!bGameStarted)
  70.     {
  71.         SetTimer(1.5, False);
  72.         bGameStarted = TRUE;
  73.     }
  74.  
  75.     if ( NextMutator != None )
  76.         NextMutator.ModifyPlayer(Other);
  77.     
  78. }
  79.  
  80. function Timer()
  81. {
  82.     local Pawn P;
  83.     
  84.     foreach AllActors(class'Pawn', P)
  85.         if (P.bIsPlayer)
  86.             MakePlayerJump(P);
  87.  
  88.     // Timer returns at random intervals.
  89.     SetTimer(FRand() * 4, False);
  90. }
  91.  
  92. function MakePlayerJump(Pawn Other)
  93. {
  94.     local pathnode jumpNode;
  95.     
  96.     if (Other.IsA('PlayerPawn'))
  97.     {
  98.         PlayerPawn(Other).DoJump(Frand());
  99.         return;
  100.     }        
  101.  
  102.     if (Other.IsA('Bot'))
  103.         foreach RadiusActors(class'PathNode', jumpNode, 200, Other.Location)
  104.         {
  105.                 Bot(Other).BigJump(jumpNode);
  106.                 return;
  107.         }
  108. }
  109.  
  110. ä                          ╣82nä≥Ö╨╣â┐≤d∞ê]Pd+â┐≤d∞â┐≤d∞ëî║≡â┐≤d∞ä≥Ö╨╣É
  111. æ ╝</a0 â.--Ä10a½├?,(            ■    ■              ÷         ⁿ    ■   ²    ■   
  112.  ■   ∙   ⁿ    ■    ∙   à
  113. 
  114. Rì     _à 
  115. kà
  116. x寠   DE    å    oI
  117. Å    4fx äT^åæ    Cr ** The Hiccups Mutator
  118. ** Author:     JbP
  119. ** Date:     03/10/99
  120. ** Version:    1.0
  121.  
  122. ** Auth email:    jbp@planetunreal.com
  123. ** Web link:    http://www.planetunreal.com/mutation
  124.  
  125. Description:     This is an incredibly annoying mutator. It causes everyone to jump at a random interval, averaging out to be about every 2 seconds.
  126.  
  127. Installation:     Double-click the UMOD file, and point it towards your UT directory.
  128.  
  129. Credits:     Chemical for passing on the idea to me, from a reported discussion in #unrealed.
  130.  
  131. Legal:        This mutator may be distributed, except where the such activity would result in financial gain for the owner, distributor or related third party. (c) copyright 1999 JbP.System\Manifest.inipSystem\Manifest.intp System\Hiccups.int{öSystem\Hiccups.uÆ    Help\Hiccups.txtíñú┼πƒE°╤C╗▐